def fun1(x):
    if x>0:
        print(x)
        fun1(x-1)
fun1(3) # 3 2 1

def fun2(x):
    if x>0:
        fun2(x-1)
        print(x)
fun2(3) # 1 2 3